projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0be1ad4
)
widget: Avoid some type checks when invalidating window
author
Timm Bäder
<mail@baedert.org>
Sat, 14 Oct 2017 05:25:19 +0000
(07:25 +0200)
committer
Timm Bäder
<mail@baedert.org>
Sat, 14 Oct 2017 05:26:09 +0000
(07:26 +0200)
Use the private _gtk_widget_get_has_window instead of the public version
gtk/gtkwidget.c
patch
|
blob
|
history
diff --git
a/gtk/gtkwidget.c
b/gtk/gtkwidget.c
index 8ef04bb5c1e17a4ad4cf6c3e41c3178db32e9068..1968ce4ce48224d585d796b5832e13d6fb57879c 100644
(file)
--- a/
gtk/gtkwidget.c
+++ b/
gtk/gtkwidget.c
@@
-5267,7
+5267,7
@@
gtk_widget_queue_draw_region (GtkWidget *widget,
/* Look for the parent with a window and invalidate @region in there. */
parent = widget;
- while (parent != NULL && !gtk_widget_get_has_window (parent))
+ while (parent != NULL && !
_
gtk_widget_get_has_window (parent))
parent = _gtk_widget_get_parent (parent);
g_assert (parent != NULL);